import {Pipe, PipeTransform} from '@angular/core';
@Pipe({
  name:"myPhonePipe"
})

export class MyPhonePipe implements PipeTransform{
  transform(str):string{
    if(str){
      str=str.split('');
      str.splice(3,4,'****');
      return str.join('');
    }else{
      return str;
    }
  }
}
